package com.llxy.worker.service.impl;

import com.llxy.worker.dto.EmployerSupportDTO;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.llxy.worker.domain.EmployerSupport;
import com.llxy.worker.mapper.EmployerSupportMapper;
import com.llxy.worker.service.EmployerSupportService;

import java.util.List;

@Service
public class EmployerSupportServiceImpl implements EmployerSupportService{

    @Resource
    private EmployerSupportMapper employerSupportMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return employerSupportMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(EmployerSupport record) {
        return employerSupportMapper.insert(record);
    }

    @Override
    public int insertSelective(EmployerSupport record) {
        return employerSupportMapper.insertSelective(record);
    }

    @Override
    public EmployerSupport selectByPrimaryKey(Integer id) {
        return employerSupportMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(EmployerSupport record) {
        return employerSupportMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(EmployerSupport record) {
        return employerSupportMapper.updateByPrimaryKey(record);
    }

    @Override
    public EmployerSupport selectByEmployerIdAndSupportId(EmployerSupport employerSupport) {
        return employerSupportMapper.selectByEmployerIdAndSupportId(employerSupport);
    }

    @Override
    public List<EmployerSupportDTO> deliverHistory(Long userId) {
        return employerSupportMapper.deliverHistory(userId);
    }

    @Override
    public int count(Long userId) {
        return employerSupportMapper.count(userId);
    }

}
